package com.ruoyi.xdata.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import javax.validation.constraints.NotNull;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 同步任务对象 xdata_kettle
 * 
 * @author yepanpan
 * @date 2025-02-14
 */
@Data
public class XdataKettle extends BaseEntity
{
    public static final String TYPE_KJB = "kjb";
    public static final String TYPE_KTR = "ktr";
    public static final String FOLDER = "/kettle/";
    private static final long serialVersionUID = 1L;

    /** 自增长主键ID */
    private Long id;
    /** 模式 */
    @Excel(name = "模式", dictType="kettle_mode", comboReadDict=true)
    private String mode;

    /** 对接应用 */
    @Excel(name = "对接应用")
    private String appName;
    @NotNull
    private Long dsId;

    /** 任务类型 */
    @Excel(name = "任务类型", dictType="kattle_type", comboReadDict=true)
    @NotNull
    private String type;

    /** 任务名称 */
    @Excel(name = "任务名称")
    @NotNull
    private String name;

    /** 状态 */
    @Excel(name = "状态", dictType="ext_status", comboReadDict=true)
    @NotNull
    private String status;

    /** Kettle文件 */
    @Excel(name = "Kettle文件")
    @NotNull
    private String kettleFile;
    private String jobFile;

    /** 最后同步时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后同步时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastTime;


}
